package top.kaoshanji.p2ch23a;

/**
 * 代码清单-p2ch23a-578页a：静态代理示例
 * author kaoshanji
 * ^_^
 * create time 2025/3/2 18:17
 */
public class TraceStaticProxyDemo {

    public static void main(String[] args) {

        // 对于客户端来说，看到的是 IService 接口
        IService proxyService = new TraceStaticProxy(new RealService());
        proxyService.sayHello();


    }

}
